<template>
  <div class="loading-mask">
    <div class="mask-spinner">
      <img src="@/assets/images/page-loading.gif" width="60" />
      <span class="msg">{{ $t("common.loadingText") }}</span>
    </div>
  </div>
</template>

<script setup lang="ts">
defineOptions({
  name: "MaskContent"
});
</script>
<style lang="scss" scoped>
$card-header-bg-color: #2e2e2f;

.loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: $card-header-bg-color;
  opacity: 0.4;

  .mask-spinner {
    display: none;
    flex-direction: column;

    .msg {
      margin-top: 15px;
    }
  }
}
</style>
